import request from '@/plugin/axios'
import util from '@/libs/util.js'

export function getErrorChart() {
    let data = {};
    data.devType = '0'
    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/Analysis/errorChart',
        method: 'post',
        data
    })
}

export function getDeviceStatus() {

    let data = {};
    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/Analysis/deviceStatus',
        method: 'post',
        data
    })
}

export function getDeviceErrorCount() {
    let data = {};
    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/Analysis/errorCount',
        method: 'post',
        data
    })
}


